import { Button, Result } from 'antd';
import { useNavigate } from 'react-router';
import './style.scss'

export default () => {
  const navigate = useNavigate()
  return <>
    <div className="page-fixed-center">
      <Result
        status="404"
        title="404"
        subTitle="抱歉, 这个页面找不到。"
        extra={<Button type="primary" onClick={() => navigate('/')}>返回首页</Button>}
      />
    </div>
  </>
}